package com.lcsolute.controller;


import com.lcsolute.domain.ResponseResult;
import com.lcsolute.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/video")
public class VideoController {

    @Autowired
    private VideoService videoService;

    @GetMapping("hotVideoList")
    public ResponseResult hotVedioList() {
        // 查询热门文章 封装成 ResponseResult 返回
        return videoService.hotVideoList();
    }

    @GetMapping("test")
    public String test() {
        return "test";
    }
}
